﻿<UserControl x:Class="New3DDemo.Road"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <ImageBrush x:Key="RoadBgBrush" ImageSource="pack://siteOfOrigin:,,,/road.jpg"/>
        <ImageBrush x:Key="SubgradeBgBrush" ImageSource="pack://siteOfOrigin:,,,/subgrade.jpg"/>
        <Style TargetType="Polyline">
            <Setter Property="StrokeThickness" Value="5"/>
            <Setter Property="Stroke" Value="{StaticResource SubgradeBgBrush}"/>
        </Style>

    </UserControl.Resources>
    <Grid>
        <Polygon x:Name="Plroad" Fill="{StaticResource RoadBgBrush}"/>
        <Polyline x:Name="pl1"/>
        <Polyline x:Name="pl2"/>

    </Grid>
</UserControl>
